export const chartOption1 = {
  barWidth: 24, // 柱子宽度
  basePointX: 36,
  ylib: 14, // y1点距离底部距离
  offsetHeight: 6, // 顶部和底部菱形突出的高度
  yNum: 5, // Y轴分数
  canvasH: "90%",
  sfbfb: 0, // 是否百分比
  qyNum: 5,
  tooltipXandY: {
    ch1: 90,
    ch2: 30,
    ch3: 96
  },
  grid: {
    left: 50, // 左边距离
    right: 0, // 右边距离
    top: 20,
    bottom: 6,
    containLabel: true
  },
  legends: ["数量"],
  legendPosition: "",
  legFontSize: 12,
  tooltipdw: "",
  xAxis: [
    {
      type: "category",
      nameTextStyle: {
        color: "#fff"
      },
      fontSize: 12,
      data: ["省公司", "武汉", "荆州", "襄阳", "宜昌"],
      axisLine: {
        lineStyle: {
          color: "#22588F"
        }
      }
    }
  ],
  yAxis: {
    type: "value",
    name: "",
    nameTextStyle: {
      color: "#fff",
      fontSize: 12
    }
  },
  series: [[200], [55], [71], [22], [18]]
};
export const chartOption2 = {
  barWidth: 24, // 柱子宽度
  basePointX: 36,
  ylib: 14, // y1点距离底部距离
  offsetHeight: 6, // 顶部和底部菱形突出的高度
  yNum: 5, // Y轴分数
  canvasH: "86%",
  qyNum: 5,
  tooltipXandY: {
    ch1: 90,
    ch2: 30,
    ch3: 96
  },
  grid: {
    left: 50, // 左边距离
    right: 0, // 右边距离
    top: 20,
    bottom: 6,
    containLabel: true
  },
  legends: ["数量"],
  legendPosition: "",
  legFontSize: 12,
  tooltipdw: "",
  xAxis: [
    {
      type: "category",
      nameTextStyle: {
        color: "#fff"
      },
      fontSize: 12,
      data: ["省公司", "武汉", "荆州", "襄阳", "宜昌"],
      axisLine: {
        lineStyle: {
          color: "#22588F"
        }
      }
    }
  ],
  yAxis: {
    type: "value",
    name: "",
    nameTextStyle: {
      color: "#fff",
      fontSize: 12
    }
  },
  series: [[177], [50], [71], [39], [18]]
};
export const dailyConfig = [
  {
    label: "名称",
    // prop: "reportName",
    slot: "reportName",
    "show-overflow-tooltip": false,
    width: "200"
  },
  {
    label: "发布单位",
    prop: "createDeptName",
    align: "center"
  },
  {
    label: "上报时间",
    prop: "reportTime",
    align: "center",
    "show-overflow-tooltip": false
  }
];

export const videoList = [
  {
    img: require("../../../assets/img/dutyVideo1.png"),
    name: "国网湖北省电力有限公司"
  },
  {
    img: require("../../../assets/img/dutyVideo2.png"),
    name: "国网武汉供电公司"
  },
  {
    img: require("../../../assets/img/dutyVideo3.png"),
    name: "国网荆州供电公司"
  },
  {
    img: require("../../../assets/img/dutyVideo4.png"),
    name: "国网宜昌供电公司"
  },
  {
    img: require("../../../assets/img/dutyVideo5.png"),
    name: "国网襄阳供电公司"
  },
  {
    img: require("../../../assets/img/dutyVideo6.png"),
    name: "国网孝感供电公司"
  },
  {
    img: require("../../../assets/img/dutyVideo7.png"),
    name: "国网鄂州供电公司"
  },
  {
    img: require("../../../assets/img/dutyVideo8.png"),
    name: "国网十堰供电公司"
  }
];
export const moreConfig = [
  {
    label: "日期",
    prop: "dutyDate",
    align: "center"
  },
  {
    label: "班次",
    prop: "shiftName",
    align: "center"
  },
  {
    label: "早/晚报",
    prop: "reportType",
    align: "center"
  },
  {
    label: "报送状态",
    prop: "reportApprovalStatus",
    align: "center",
    formatter: (row) => {
      const type = {
        0: "待提交",
        1: "待审批",
        2: "驳回",
        3: "已报送"
      };
      return type[row.reportApprovalStatus];
    }
  },
  {
    label: "上报时间",
    prop: "reportTime",
    align: "center",
    "show-overflow-tooltip": false
  }
];
